package com.mdinfo.gw.door.doorDriver.aopu.request;

import com.mdinfo.base.utils.StringUtil;
import lombok.Data;

import java.util.Date;

/**
 * Created by Administrator on 2018/2/5.
 */
@Data
public class EventReq extends BaseReq {

    private String cardno;
    private String time;
    private Integer type;
    private Integer otherRecord;
    private Integer eventTrace;

    public EventReq(Integer mjno,Integer drno,
                    String cardno,String time,Integer type,
                    Integer otherRecord,Integer eventTrace){
        this.setCmd("upEvent");
        this.setTrace(StringUtil.getUUid());
        this.setTimeStamp(new Date().getTime());
        this.setMjno(mjno);
        this.setDrno(drno);

        this.cardno = cardno;
        this.time = time;
        this.type = type;
        this.otherRecord = otherRecord;
        this.eventTrace = eventTrace;
    }
}
